package com.aaa.factorymode.demo05;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/11/8
 */
public class PowerAdapter implements DC5V{

    private AC220 ac220;

    public PowerAdapter(AC220 ac220) {
        this.ac220 = ac220;
    }
    //输出5V直流
    @Override
    public int output5V() {
        int output = this.ac220.output220V();
        return (output/44);
    }
}
